import React, { Component } from 'react'
import { Route, Switch, Redirect } from 'react-router-dom'
import Home from './pages/Home'
import About from './pages/About'
import Login from './pages/Login'
import './App.css'
export default class App extends Component {
  render() {
    return (
      <div className="app">
        <div>
          {/* <Link to="/home">跳转到Home</Link>
          <Link to="/about">跳转到About</Link> */}
        </div>

        <Switch>
          <Route path="/home" component={Home}></Route>
          <Route path="/about" component={About}></Route>
          <Route path="/Login" component={Login}></Route>
          <Redirect to="/Login" />
        </Switch>
      </div>
    )
  }
}
